middle element of linked list using the length of linked list